﻿using System;
using HigLabo.Net.Extensions;

namespace HigLabo.Net.WindowsLive
{
    /// <summary>
    /// 
    /// </summary>
    public class UserEmails : ResponseObject
    {
        /// <summary>
        /// 
        /// </summary>
        public String Preferred { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public String Account { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public String Personal { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public String Business { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public String Other { get; set; }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="jsonText"></param>
        public UserEmails(String jsonText)
        {
            this.SetProperty(jsonText);
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="jsonText"></param>
        public override void SetProperty(String jsonText)
        {
            var d = this.SetData(jsonText);
            this.Preferred = d.ToString("preferred");
            this.Account = d.ToString("account");
            this.Personal = d.ToString("personal");
            this.Business = d.ToString("business");
            this.Other = d.ToString("other");
        }
    }
}
